package cn.yunhe.services.impl;

import cn.yunhe.dao.IRecordDao;
import cn.yunhe.entity.Record;
import cn.yunhe.services.IRecordService;
import lombok.Getter;
import lombok.Setter;

import javax.annotation.Resource;

@Getter
@Setter
public class RecordService implements IRecordService {
    @Resource
    private IRecordDao recordDao;

    @Override
    public Record get(int rid) {
        return recordDao.get(rid);
    }

    @Override
    public void addRecord(Record record) {
        recordDao.addRecord(record);
    }

    @Override
    public void delRecord(int rid) {
        recordDao.delRecord(rid);
    }
}
